
INCLUDES= -I../useful/ -I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/linux 
LD_LIBRARY_PATH=.:/usr/local/my_lib:../phga:../java
CPPFLAGS=-Wall -pg -g
CC=g++
EXECUTABLE=o

OBJECTS_COMPLETE_PATH=	phga.o \
			main.o \
			../neighbor_joining/neighbor_joining.o \
			../neighbor_joining/Graph_Node.o \
			random.o \
			fitness.o \
			../useful/useful_math.o 

OBJECTS	=		phga.o \
			main.o \
			neighbor_joining.o \
			Graph_Node.o \
			random.o \
			fitness.o \
			useful_math.o 

all: ${OBJECTS_COMPLETE_PATH}
	${CC} $(OBJECTS) -o $(EXECUTABLE) $(INLCUDES)


%.o : %.cpp
	@echo Compiling $< ...;$(CC) $(CPPFLAGS) $(INCLUDES) -c $<

%.o : %.c
	@echo Compiling $< ...;$(CC) $(CPPFLAGS) $(INCLUDES) -c $<

